d8f037047f258885b11f8deacc0c6bb38f17eda1,src/main/java/kalang/compiler/AstBuilder.java,AstBuilder,visitQuestionExpr,#KalangParser.QuestionExprContext#,698
Before Change
VarExpr ve = new VarExpr(vo);
IfStmt is = new IfStmt(conditionExpr
,wrapBlock(new ExprStmt(new AssignExpr(ve, trueExpr)))
,wrapBlock(new ExprStmt(new AssignExpr(ve,falseExpr)))
);
stmts.add(is);
MultiStmtExpr mse = new MultiStmtExpr(stmts, ve);
mapAst(ve, ctx);
After Change
VarExpr ve = new VarExpr(vo);
IfStmt is = new IfStmt(conditionExpr);
is.getTrueBody().statements.add(new ExprStmt(new AssignExpr(ve, trueExpr)));
is.getFalseBody().statements.add(new ExprStmt(new AssignExpr(ve,falseExpr)));
stmts.add(is);
MultiStmtExpr mse = new MultiStmtExpr(stmts, ve);
mapAst(ve, ctx);